Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ion-datetime): add hidden-days when showDaysOutsideCurrentMonth prop is true #30209

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

JoaoFerreira-FrontEnd
Copy link

@JoaoFerreira-FrontEnd JoaoFerreira-FrontEnd commented Feb 24, 2025

Issue number: Internal


What is the new behavior?

Add a new property to datetime, showDaysOutsideCurrentMonth, that when true will show the last days of the previous month and the first days of the next month. This will just occupy empty "cells" at the beginning of the month "table" and add rows to the table until a maximum of 6 rows are displayed.
This property's default is false, so this should not introduce a breaking change.

Changes

  • add styles for hidden day button;
  • add showDaysOutsideCurrentMonth property to datetime component;
  • change month generation to respect new property;
  • add visual tests to new feature;

Does this introduce a breaking change?

  • Yes
  • No

Other information

- add showDaysOutsideCurrentMonth property to datetime  component;
- change month generation to respect new property;
Copy link

vercel bot commented Feb 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ionic-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 27, 2025 4:04pm

@github-actions github-actions bot added package: core @ionic/core package package: angular @ionic/angular package package: vue @ionic/vue package labels Feb 24, 2025
@JoaoFerreira-FrontEnd JoaoFerreira-FrontEnd changed the title - add styles for hidden day button; -feat(ion-datetime): add hidden-days when showDaysOutsideCurrentMonth prop is true Feb 24, 2025
- create specific test page for showDaysOutsideCurrentMonth;
@JoaoFerreira-FrontEnd JoaoFerreira-FrontEnd changed the title -feat(ion-datetime): add hidden-days when showDaysOutsideCurrentMonth prop is true feat(ion-datetime): add hidden-days when showDaysOutsideCurrentMonth prop is true Feb 27, 2025
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need test for wheel type for this feature?

@BenOsodrac
Copy link
Contributor

@JoaoFerreira-FrontEnd some screenshots are failing, please review this before requesting review 👍

Apart from the comments I already left, I didn't find anything more to comment on! It seems to be working as expected in runtime 💪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: angular @ionic/angular package package: core @ionic/core package package: vue @ionic/vue package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants